/*
 * @authors :Bin Mei
 * @date    :2017-08-09
 * @description：票交汇App - 公告
 */

import { NOTICE_LIST,NOTICE_PAGES } from "../../actions/Notice";


let initStates = {
	list:[]
};

function home(state = initStates, action) {
    switch (action.type) {
        case NOTICE_LIST: //公告列表
         
          return Object.assign({}, state,{list:action.data});
        case NOTICE_PAGES: //公告列表 分页
         
          return Object.assign({}, state,{list:state.list.concat(action.data)});
        default:
            return state;
    };
};

export default home;

